/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package fpgrowth_demo;

import java.awt.Graphics;
import javax.swing.JPanel;

/**
 *
 * @author TTIN
 */
public class JFPtreePanel extends JPanel {

    public FPTree fptree;

    public void setDrawingFPTree(FPTree tree)
    {
        fptree = tree;
    }

    public void paintComponent(Graphics g)
    {
        super.paintComponent(g);
        fptree.drawTree(g);
        //g.drawOval(10, 10, 200, 100);
        
    }

    
}
